-- status
-- create by panyl
-- 道具：  附加状态

return {
    apply = function(source, target, classId, value)
        local attack = value["attack"];
        local cantBeAttack = value["cant_be_attack"];

        -- 特定的冈布奥英雄效果加倍
        local petId = ME.user.dbase:query("active_pet", 0)
        local additionSlime = value["slime"];
        if table.indexOf(additionSlime, petId) >= 0  then
            attack = attack * 2;
            cantBeAttack = cantBeAttack * 2;
        end

        local condition = {
            ["attack"] = attack,
            ["cant_be_attack"] = cantBeAttack,
            ["end_round"] = -1,
        };

        CombatStatusM.applyStatus(target, "sharp", condition);
    end,
};
